<form action="spieltage_freigeben-v_2.php" method="post">


<?php
	

	include("../inc/joomlaInt_admin.php");
	include("../inc/inc_configuration.php");
	
	$q="SELECT gid FROM $tbl_users WHERE id=$jUser";
					$qe=mysql_query($q);
					$qeo=mysql_fetch_object($qe);
					
					$gid=$qeo->gid;
					
					if ($gid!=$admingroup)
					{
						echo "Du bist kein Admin!";
						break;
					}
					
	$liga=$_POST["liga"];
	$_SESSION["liga"]=$liga;
	
	
	$lq = "SELECT t.id FROM $tbl_teams t, $tbl_lt lt WHERE lt.leagueId=$liga AND lt.teamId=t.id";
	$lqe = mysql_query($lq);
	$count = mySQL_num_rows($lqe);
	$matchdays = ($count-1)*2;
	
	echo "$lq";
	
	
	echo'<select name="matchday" Size="1">';	
	
	$i=1;
	while($i<$matchdays+1)
	{
		echo '<Option Value="',$i,'">',$i,'</option>';
		$i++;
	}
	echo"</select><br><br>";

?>

<input type="submit" value="OK">
</form>